package com.ryl.yomall.weball.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Date 21:14
 * @Author ryl
 */
@Controller
public class LoginController {
    @GetMapping("/login.html")
    public String toLogin(String originUrl,Model model){

        model.addAttribute ( "originUrl",originUrl );
        return "login";
    }@GetMapping("/register.html")
    public String toRegister(String originUrl,Model model){

        model.addAttribute ( "originUrl",originUrl );
        return "register";
    }


}
